import 'package:flutter/material.dart';

// 定义有状态组件
// 快捷键：fstfull，得安装插件：Flutter Widget Snippets
class HomePage06 extends StatefulWidget {
  const HomePage06({Key? key}) : super(key: key);

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage06> {
  // 状态变量
  int count = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Column组件', style: TextStyle(color: Colors.white)),
        backgroundColor: Colors.blue,
      ),
      body: Center(
        child: Container(
          width: 300,
          height: 400,
          color: Colors.blue,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center, // 主轴
            crossAxisAlignment: CrossAxisAlignment.start, // 侧轴
            children: [
              Image.network(
                'https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png',
                width: 200,
              ),
              const Text('美妆效果嘎嘎不卡粉末面刷'),
              const Text('¥99.90'),
            ],
          ),
        ),
      ),
    );
  }
}
